var wUtils = require('../../utils/wechatRequest.js');
Page({
  data: {
    sysHeight: 0,
    sysWidth: 0,
    listHeight: 500,
    
    content: [],
  },
  onLoad() {
    this.getSystemInfo();
    var that = this;
    wUtils.doGet('/app/user/point/track/list', null, function (res) {
      if (res.code == 0) {
        
        that.setData({
          content: res.pointTrackList
        });
      }
    });
  },
  getSystemInfo() {
    var that = this;
    wx.getSystemInfo({
      success: function (res) {
        that.setData({
          sysWidth: res.windowWidth,
          sysHeight: res.windowHeight,
          listHeight: res.windowHeight - 48
        })
      },
    })
  },
})